<template>
    <div class="transfer-page">
        <TopTitleExit title="Transfer" :exit="routerExit" :has_right_btn="true" right_btn_icon="/icon/record.svg"></TopTitleExit>
        <div class="transfer-container">
            <div class="account-line">
                <div class="main-box">
                    <div class="account-box">
                        <div class="side">From</div>
                        <div class="account">Funding Account</div>
                    </div>
                    <div class="account-box">
                        <div class="side">To</div>
                        <div class="account">Futures Account</div>
                    </div>
                </div>
                <div class="btn-box">
                    <div class="icon" style="--icon: url(/icon/transfer.svg); --icon-size: 55%"></div>
                </div>
            </div>
            <div class="symbol-line">
                <div class="k">Symbol</div>
                <div class="v">USDT</div>
            </div>
            <div class="amount-line">
                <div class="title">Amount</div>
                <div class="input-box">
                    <div class="left-box">
                        <input type="number" placeholder="Input amount" />
                    </div>
                    <div class="right-box">
                        <div class="unit">USDT</div>
                        <div class="btn">All</div>
                    </div>
                </div>
                <div class="value-line">
                    <div class="k">Available:</div>
                    <div class="v">0.00 USDT</div>
                </div>
            </div>
            <div class="transfer-btn">
                <div class="btn">Transfer</div>
            </div>
        </div>
    </div>
</template>

<script setup>
import TopTitleExit from '@/components/common/TopTitleExit.vue';
import { routerExit } from '@/utils/jump';
</script>

<style scoped lang="less">
.transfer-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;

    .transfer-container {
        box-sizing: border-box;
        width: 100%;
        flex: 1;
        padding: 3vw;
        display: flex;
        flex-direction: column;
        gap: 4vw;

        .account-line {
            width: 100%;
            display: flex;
            gap: 3vw;
            
            .main-box {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 2vw;
                
                .account-box {
                    box-sizing: border-box;
                    height: 10vw;
                    padding: 0 5vw;
                    border-radius: 2vw;
                    background-color: var(--bg-strong-color);
                    display: flex;
                    align-items: center;
    
                    .side {
                        width: 15vw;
                        font-size: 3.5vw;
                    }
    
                    .account {
                        font-size: 3.5vw;
                        font-weight: 500;
                    }
                }
            }
            
            .btn-box {
                width: 15vw;
                display: flex;
                justify-content: center;
                align-items: center;

                .icon {
                    --size: 10vw;
                    --w: var(--size);
                    --h: var(--size);
                    border-radius: 50%;
                    background-color: var(--active-light-color);
                }
            }
        }

        .symbol-line {
            box-sizing: border-box;
            width: 100%;
            height: 12vw;
            padding: 0 5vw;
            background: var(--bg-strong-color);
            border-radius: 2vw;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .k, .v {
                font-size: 3.5vw;
                font-weight: 500;
            }

            .k {
                color: var(--text-light-color);
            }
        }

        .amount-line {
            display: flex;
            flex-direction: column;
            gap: 2vw;

            .title {
                font-size: 3.5vw;
            }

            .input-box {
                box-sizing: border-box;
                width: 100%;
                height: 10vw;
                padding: 0 4vw;
                border-radius: 2vw;
                background-color: var(--bg-strong-color);
                display: flex;
                align-items: center;
                gap: 2vw;

                .left-box {
                    flex: 1;

                    input {
                        width: 100%;
                        height: 100%;
                        border: 0;
                        outline: 0;
                        font-size: 3vw;
                        background-color: #00000000;
                    }
                }

                .right-box {
                    display: flex;
                    align-items: center;
                    gap: 2vw;

                    .unit, .btn {
                        font-size: 3.5vw;
                        font-weight: 500;
                    }
                    
                    .btn {
                        color: var(--active-color);
                    }
                }
            }

            .value-line {
                display: flex;
                align-items: center;
                gap: 5vw;

                .k {
                    font-size: 3.5vw;
                    color: var(--text-light-color);
                }
                
                .v {
                    font-size: 3.3vw;
                }
            }
        }

        .transfer-btn {
            flex: 1;
            display: flex;
            flex-direction: column-reverse;
            
            .btn {
                --h: 10vw;
                width: 100%;
                height: var(--h);
                line-height: var(--h);
                font-size: 3.5vw;
                text-align: center;
                color: #fff;
                border-radius: 2vw;
                background-color: var(--active-color);
            }
        }
    }
}
</style>